<?php if (!defined('THINK_PATH')) exit(); /*a:3:{s:61:"E:\www\sunwm\web/../application/admin\view\order\setting.html";i:1509779268;s:61:"E:\www\sunwm\web/../application/admin\view\public\header.html";i:1503189484;s:61:"E:\www\sunwm\web/../application/admin\view\public\footer.html";i:1512624954;}*/ ?>
﻿<!DOCTYPE html>
<html lang="zh-cn">

	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<meta http-equiv="X-UA-Compatible" content="IE=edge">
		<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
		<meta name="renderer" content="webkit">
		<title><?php echo config('sitename'); ?>-<?php echo lang('label')['Login_title']; ?></title>
		<link rel="stylesheet" type="text/css" href="__ROOT__/static/public/css/pintuer.css" />
		<link rel="stylesheet" type="text/css" href="__ROOT__/static/admin/css/admin.css" />
		<script type="text/javascript" src="__ROOT__/static/public/js/jquery.js"></script>
		<script type="text/javascript" src="__ROOT__/static/public/js/pintuer.js"></script>
		<script type="text/javascript" src="__ROOT__/static/admin/js/admin.js"></script>
		<script type="text/javascript" src="__ROOT__/static/public/layer/layer.js"></script>
		<script type="text/javascript" src="__ROOT__/static/public/laydate/laydate.js"></script>
		<script type="text/javascript" src="__ROOT__/static/public/laytpl/laytpl.js"></script>
	</head>

	<body>
	<style>
		html { overflow-x:hidden; }
	</style>
<div class="tab">
	<div class="tab-head">
		<strong>支付配置</strong>
		<ul class="tab-nav">
			<li <?php if($tab == ''): ?>class="active"<?php endif; ?> ><a href="#tab-alipay">支付宝支付</a></li>
			<li <?php if($tab == 'wxpay'): ?>class="active"<?php endif; ?> ><a href="#tab-wxpay">微信支付</a></li>
			<!--<li <?php if($tab == 'other'): ?>class="active"<?php endif; ?> ><a href="#tab-other">其他设置</a></li>-->
		</ul>
	</div>
	<div class="tab-body">
		<br />
		<div class="tab-panel <?php if($tab == ''): ?>active<?php endif; ?>" id="tab-alipay">
			<form method="post" class="form-x" action="?type=ali">
				<div class="form-group">
					<div class="label">
						<label for="partner">合作者身份ID</label>
					</div>
					<div class="field">
						<input type="text" class="input input-auto" id="partner" name="partner" value="<?php echo $data['partner']; ?>" size="80" placeholder="合作者身份ID" data-validate="required:不可为空" />
					</div>
				</div>
				<div class="form-group">
					<div class="label">
						<label for="seller_id">支付宝账号</label>
					</div>
					<div class="field">
						<input type="text" class="input input-auto" id="seller_id" name="seller_id" value="<?php echo $data['seller_id']; ?>" size="80" placeholder="支付宝账号" data-validate="required:不可为空" />
					</div>
				</div>
				<div class="form-group">
					<div class="label">
						<label for="app_id">APPID</label>
					</div>
					<div class="field">
						<input type="text" class="input input-auto" id="app_id" name="app_id" value="<?php echo $data['app_id']; ?>" size="80" placeholder="开方平台应用ID" data-validate="required:不可为空" />
					</div>
				</div>
				<div class="form-group">
					<div class="label">
						<label>privatekey</label>
					</div>
					<div class="field">
						<textarea name="privatekey" class="input input-auto" rows="15" cols="80" placeholder="（支付宝私钥）去头去尾一串字符串" data-validate="required:不可为空"><?php echo $data['privatekey']; ?></textarea>
					</div>
				</div>
				<div class="form-button">
					<button class="button bg-main" type="submit">提交</button>
				</div>
			</form>
		</div>
		<div class="tab-panel <?php if($tab == 'wxpay'): ?>active<?php endif; ?>" id="tab-wxpay">
			<!--const APPID = '邮件中有,即`公众号APPID`';-->
			<!--const MCHID = '邮件中有,即`微信支付商户号`';-->
			<!--const KEY = 'wxpay.config.php中注释有相关链接';-->
			<!--const APPSECRET = '公众平台开发者中心设置,同样注释中有链接';-->
			<form method="post" class="form-x" action="?">
				<div class="form-group">
					<div class="label">
						<label for="partner">APPID</label>
					</div>
					<div class="field">
						<input type="text" class="input input-auto" id="appid" name="appid" value="<?php echo $wxdata['appid']; ?>" size="80" placeholder="公众号APPID" data-validate="required:不可为空" />
					</div>
				</div>
				<div class="form-group">
					<div class="label">
						<label for="seller_id">MCHID</label>
					</div>
					<div class="field">
						<input type="text" class="input input-auto" id="mchid" name="mchid" value="<?php echo $wxdata['mchid']; ?>" size="80" placeholder="微信支付商户号" data-validate="required:不可为空" />
					</div>
				</div>
				<div class="form-group">
					<div class="label">
						<label for="app_id">KEY</label>
					</div>
					<div class="field">
						<input type="text" class="input input-auto" id="key" name="key" value="<?php echo $wxdata['key']; ?>" size="80" placeholder="商户支付密钥" data-validate="required:不可为空" />
					</div>
				</div>
				<div class="form-group">
					<div class="label">
						<label>APPSECERT</label>
					</div>
					<div class="field">
						<input type="text" class="input input-auto" size="80" id="appsecert" name="appsecret" value="<?php echo $wxdata['appsecret']; ?>" placeholder="公众帐号appsecret" data-validate="required:不可为空"/>
					</div>
				</div>
				<div class="form-group">
					<div class="label">
						<label>apiclient_cert证书</label>
					</div>
					<div class="field">
						<textarea name="apiclient_cert" class="input input-auto" rows="15" cols="80" placeholder="apiclient_cert证书" data-validate="required:不可为空"><?php echo $apiclient_cert; ?></textarea>
					</div>
				</div>
				<div class="form-group">
					<div class="label">
						<label>apiclient_key证书</label>
					</div>
					<div class="field">
						<textarea name="appclient_key" class="input input-auto" rows="15" cols="80" placeholder="appclient_key证书" data-validate="required:不可为空"><?php echo $apiclient_key; ?></textarea>
					</div>
				</div>
				<div class="form-button">
					<button class="button bg-main" type="submit">提交</button>
				</div>
			</form>
		</div>
	</div>
	<div class="tab-panel <?php if($tab == 'other'): ?>active<?php endif; ?>" id="tab-other"></div>
</div>
</div>
<p class="text-center text-gray" style="margin-top:10px;"><a class="text-gray" target="_blank" href="http://www.wm0530.com">完美外卖系统 Power by 网络工厂</a></p>
</body>
<script>
$('.upload').on('click',function (){
		var id = $(this).attr('data-id');
		 upload(id);
	}
);
function upload(id){
	layer.open({
		type:2,
		title:false,
		area: ['70%', '90%'],
		offset: '5%',
		content: "<?php echo url('/admin/material'); ?>?id="+id
	});
}
</script>
</html>